import { defineStore } from "pinia";
import { ref } from 'vue';

export const useShowRegisterDialogStore = defineStore('yunzhou_showRegisterDialog', () => {
  const showRegisterDialog = ref(false)

  const getShowRegisterDialog = () => {
    return showRegisterDialog.value
  }

  const setShowRegisterDialog = (condition) => {
    showRegisterDialog.value = condition
  }

  const removeShowRegisterDialog = () => {
    showRegisterDialog.value = false
  }

  return { showRegisterDialog, getShowRegisterDialog, setShowRegisterDialog, removeShowRegisterDialog }
});